﻿@model workflowMVC.Models.AccountModel

@{
    ViewBag.Title = ViewBag.Description;
}



<h2 style="text-align:center">@ViewBag.Description</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <table class="ui-widget-content ui-corner-all" style="margin:auto;padding:5px">  
        <tr>
            <td>
                @Html.LabelFor(model => model.UserName)
            </td>
            <td>
                @Html.TextBoxFor(model => model.UserName)
            </td>
        </tr>
        <tr>
            <td></td>
            <td>
                @Html.ValidationMessageFor(model => model.UserName)
            </td>
        </tr>
        
      
        <tr>
            <td>
                @Html.LabelFor(model => model.FullName)
            </td>
            <td>
                @Html.TextBoxFor(model => model.FullName)
            </td>
        </tr>
        <tr>
            <td></td>
            <td>
                @Html.ValidationMessageFor(model => model.FullName)
            </td>
        </tr>
        <tr>
            <td>
                @Html.LabelFor(model => model.Email)
            </td>
            <td>
                @Html.TextBoxFor(model => model.Email)
            </td>
        </tr>
        <tr>
            <td></td>
            <td>
                @Html.ValidationMessageFor(model => model.Email)
            </td>
        </tr>
        
        <tr>
            <td>
                @Html.LabelFor(model => model.role)
            </td>
            <td>
                @Html.DropDownListFor(m => m.role, ViewBag.rolez as SelectList, "---vai trò trống---")
            </td>
        </tr>
        <tr>
            <td></td>
            <td>
                @Html.ValidationMessageFor(model => model.role)
            </td>
        </tr>
        <tr>
            <td>
                @Html.LabelFor(model => model.IsJudge)
            </td>
            <td>
                @Html.CheckBoxFor( m => m.IsJudge)
            </td>
        </tr>
        <tr>
            <td></td>
            <td><input type="submit" value="Gửi" /></td>
        </tr>
        
    </table>
}


